/**
 * 
 */
package com.yidu.drug.service;

import java.util.List;
import java.util.Map;

import com.yidu.drug.model.WholesaleModel;

/**
 * 类的描述
 * @author yuanqing
 * @date 2018年8月16日上午10:45:14
 * @version 1.0
 */
public interface WholesaleService {
	int deleteByPrimaryKey(String pfId);

	int insert(WholesaleModel record);

	int insertSelective(WholesaleModel record);

	WholesaleModel selectByPrimaryKey(String pfId);

	int updateByPrimaryKeySelective(WholesaleModel record);

	int updateByPrimaryKey(WholesaleModel record);

	int findTotalRows(Map<String, String> map);

	List<WholesaleModel> findAllPage(Map<String,String> paramMap);

	List<WholesaleModel> findLoginRows(WholesaleModel t);
	/**
	 *显示所有(批发退货)
	 * @param map
	 * @return
	 */
	List<WholesaleModel> findAlls(Map<String, String> map);
	/**
	 *显示所有分页(批发退货)
	 * @param map
	 * @return
	 */
	int findRows(Map<String, String> map);
	/**
	 * 批发退货 财务审核
	 * @param map
	 * @return
	 */
	List<WholesaleModel> findAllPf(Map<String, String> map);
	/**
	 * 批发退货 财务审核(行数)
	 * @param map
	 * @return
	 */
	int findRowPf(Map<String, String> map);
	
	/**
	 * 根据批发Id修改审核状态(重新审核)
	 * @param pfId
	 * @return
	 */
	int updateByPfId(String pfId);
}
